﻿$.parseParam = function (urlParam) {
    var param = '{"' +
        urlParam
            .replace(/(%22)/ig, "\\%22") // " --> \"
            .replace(/(%5C)/ig, "\\%5C") // \ --> \\
            .replace(/=/g, '": "').replace(/&/g, '","')
        + '"}';
    return $.parseJSON(decodeURIComponent(param));
};